package com.ozo.cloud.system.pojo.dto;

import com.ozo.cloud.common.base.model.BaseValidDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.*;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 系统配置保存对象
 *
 * @author qiangesoft
 * @version 1.0
 * @date 2024-11-19 20:55:22
 */
@Data
@Schema(description = "系统配置保存对象")
public class SysConfigSaveDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @NotNull(message = "主键不能为空", groups = BaseValidDTO.edit.class)
    @Schema(description = "id")
    private Long id;

    @NotBlank(message = "分组code不能为空")
    @Schema(description = "分组code")
    private String groupCode;

    @NotBlank(message = "配置名称不能为空")
    @Schema(description = "配置名称")
    private String configName;

    @NotBlank(message = "配置key不能为空")
    @Schema(description = "配置key")
    private String configKey;

    @NotBlank(message = "配置值不能为空")
    @Schema(description = "配置值")
    private String configValue;

    @Schema(description = "类型：1-内置 2-新增")
    private String configType;

    @Schema(description = "备注")
    private String remark;

}
